Suggest the best matching target for cargo run
authorRyan Quattlebaum <ryan.quattlebaum@icloud.com>
Mon, 14 Mar 2016 17:22:17 +0000 (13:22 -0400)
committerRyan Quattlebaum <ryan.quattlebaum@icloud.com>
Mon, 14 Mar 2016 17:26:29 +0000 (13:26 -0400)
commit089dafc20f46357fe102ed7c74d45e3aa56ae695
tree0c7fb9204bbc0cb6263380b2f61eb686064743a5
parentfb52825a51ee7875849a9f2fd5e4b05aad2e3c75
Suggest the best matching target for cargo run

Targets passed to cargo compile are validated against the package. If
the target exists, it is compiled. If not, cargo will bail and offer a
suggested target name if there is a close match.

The tests create and build/run binaries and examples using filenames
that are close (or not so close) to the target names to verify that
close matching names are suggested to the user.
src/cargo/core/package.rs
src/cargo/ops/cargo_compile.rs
tests/test_cargo_compile.rs
tests/test_cargo_run.rs